package adapter

import "project/design/adapter/adaptee"

//实现馄饨接口
type HunTunAdapter struct {
	chaoShou *adaptee.ChaoShou
}

func CreateHunTunAdapter(chaoShou adaptee.ChaoShou) *HunTunAdapter {
	return &HunTunAdapter{chaoShou: &chaoShou}
}

func (hta *HunTunAdapter) HunTunContent() string {
	return "use adapter: " + (*hta.chaoShou).ChaoShouContent()
}
